package com.drink.yan.intf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.drink.yan.intf.entity.io.YanJsonMapIo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meta.framework.copy.Copyable;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 辅导员
 *
 * @Title:
 * @Package: com.drink.yan.intf.entity.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2023/11/25 11:16
 * @Version: v2.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "Yan_user_teacher", autoResultMap = true)
public class YanUserTeacher extends Copyable {

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	private Long userId;

	private String opSource;

	@TableField(value = "current_schs", typeHandler = FastjsonTypeHandler.class)
	@ApiModelProperty("当前所在学校")
	private List<YanJsonMapIo> currentSchs;

	@TableField(value = "current_spes", typeHandler = FastjsonTypeHandler.class)
	@ApiModelProperty("当前所在专业")
	private List<YanJsonMapIo> currentSpes;

	private String delFlag;
	private Long createBy;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime createTime;
	private Long updateBy;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime updateTime;
	private String remark;
}
